import request from '@/utils/request'

// 查询印章类型列表(无分页)
export function listByCompanyId() {
  return request({
    url: '/console/sealType/listByCompanyId',
    method: 'get'
  })
}

// 查询印章类型列表(分页)
export function listSealType(query) {
  return request({
    url: '/console/sealType/list',
    method: 'get',
    params: query
  })
}

// 查询印章类型详细
export function getSealType(id) {
  return request({
    url: '/console/sealType/' + id,
    method: 'get'
  })
}

// 新增印章类型
export function addSealType(data) {
  return request({
    url: '/console/sealType',
    method: 'post',
    data: data
  })
}

// 修改印章类型
export function updateSealType(data) {
  return request({
    url: '/console/sealType',
    method: 'put',
    data: data
  })
}

// 删除印章类型
export function delSealType(id) {
  return request({
    url: '/console/sealType/' + id,
    method: 'delete'
  })
}
